package com.itqian.system.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * @author shishuqian
 * date 2022/3/26
 * time 16:54
 **/
@Data
public class AnnouncementForm {

    @NotBlank(message = "公告内容不能为空")
    @Size(max = 64,message = "公告题目最大长度为512")
    private String title;

    private Integer storeId;

    @NotBlank(message = "公告内容不能为空")
    @Size(max = 512,message = "公告最大长度为512")
    private String content;

    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @NotNull(message = "公告状态不能为空")
    private Boolean announcementStatus;

}
